import request from "@/utils/request";
/**
 * 禽蛋管理列表
 * @param {*} data
 * @returns
 */
export function API_poultryList(params) {
  return request({
    url: "/poultry/list",
    method: "get",
    params,
  });
}

/**
 * 禽蛋管理新增
 * @returns
 */
export function API_poultryCreate(data) {
  return request({
    url: "/poultry/create",
    method: "post",
    data,
  });
}

/**
 * 禽蛋管理修改
 * @returns
 */
export function API_poultryEdit(data) {
  return request({
    url: `/poultry/edit/${data.code}`,
    method: "put",
    data,
  });
}

/**
 * 禽蛋管理删除
 * @returns
 */
export function API_poultryDelete(data) {
  return request({
    url: `/poultry/delete/${data.code}`,
    method: "delete",
  });
}

/**
 * 禽蛋管理记录
 * @returns
 */
export function API_poultryGet(params) {
  return request({
    url: "/poultry/get",
    method: "get",
    params,
  });
}
